package carmesi.webprovider;

/**
 *
 * @author Victor
 */
public class CarmesiFramework {
    private static CarmesiFramework framework=new CarmesiFramework();
    
    public String getCookieMaxAgeParamName(){
        return "carmesi.cookie.maxAge";
    }
    
    public int getDefaultCookieMaxAge(){
        return -1;
    }
    
    public String getJsonSerializerClassnameParamName(){
        return "carmesi.json.serializer";
    }
    
    public String getDefaultJsonSerializerClassname(){
        return "carmesi.json.JacksonSerializer";
    }
    
    public String[] getIncludedJsonSerializers(){
        return new String[]{"carmesi.json.JacksonSerializer", "carmesi.json.GsonSerializer"};
    }
    
    public String getRequestAttributeAutomaticGenerationParamName(){
        return "carmesi.requestAttribute.autoGeneration";
    }
    
    public boolean getDefaultRequestAttributeAutomaticGeneration(){
        return true;
    }

    public static CarmesiFramework getInstance() {
        return framework;
    }
    
}
